import java.util.Scanner;

public class 找众数 {
    public static void main(String[] args) {
        int[] num = new int[100];
        Scanner input = new Scanner(System.in);
        System.out.print("您要输入几个数据：");
        int n = input.nextInt();
        System.out.print("请输入您的数据：");
        for (int i = 0; i < n; i++) {
            num[i] = input.nextInt();
        }
        for (int i = 0; i < n - 1; i++){
            for (int j = 0; j < n - 1 - i; j++){
                if (num[j] > num[j + 1]){
                    int tem = num[j];
                    num[j] = num[j + 1];
                    num[j + 1] = tem;
                }
            }
        }
        System.out.print(num[(n - 1) / 2]);
    }
}
